package com.medical.app.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

/**
 * 健康百科表
 */
@Data
@TableName(value = "mar_healthy_essay")
public class HealthyEssay {
    /**
     * 文章ID
     */
    @TableId(value = "healthy_essay_id", type = IdType.AUTO)
    private Integer healthyEssayId;

    /**
     * 文章标题
     */
    @TableField(value = "healthy_essay_title")
    private String healthyEssayTitle;

    /**
     * 缩略图
     */
    @TableField(value = "healthy_essay_image")
    private String healthyEssayImage;

    /**
     * 作者
     */
    @TableField(value = "author")
    private String author;

    /**
     * 文章内容
     */
    @TableField(value = "healthy_essay_content")
    private String healthyEssayContent;

    /**
     * 上传时间
     */
    @TableField(value = "upload_time")
    private Date uploadTime;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 0 删除 1 可用
     */
    @TableField(value = "`state`")
    private Integer state;
}